<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich" template="layout/template.xhtml">

	<ui:define name="body">
				
		<h:messages globalOnly="true" styleClass="message"/>
		<rich:panel>
			<f:facet name="header">工作空间管理</f:facet>
			<s:div>
				<h:form>
					<h:dataTable value="#{conversationList}" var="entry"
						rendered="#{not empty conversationList}">
						<h:column>
							<f:facet name="header">Workspace</f:facet>
							<h:commandLink action="#{entry.select}"
								value="#{entry.description}" />
							<h:outputText value="[current]" rendered="#{entry.current}" />
						</h:column>
						<h:column>
							<f:facet name="header">Activity</f:facet>
							<h:outputText value="#{entry.startDatetime}">
								<f:convertDateTime type="time" pattern="hh:mm a" />
							</h:outputText>
							<h:outputText value=" - " />
							<h:outputText value="#{entry.lastDatetime}">
								<f:convertDateTime type="time" pattern="hh:mm a" />
							</h:outputText>
						</h:column>
						<h:column>
							<f:facet name="header">Action</f:facet>
							<h:commandButton action="#{entry.select}" value="切换" />
							<h:commandButton action="#{entry.destroy}" value="删除" />
						</h:column>
					</h:dataTable>
				</h:form>
			</s:div>
		</rich:panel>
	</ui:define>
</ui:composition>